<template>
	<view class="p-4">
		<mp-html :content="content" selectable class="text-wrap content"></mp-html>
	</view>
</template>

<script setup lang="ts">
	import { ref } from 'vue'
	import { onLoad } from '@dcloudio/uni-app'
	import { $http } from '@/utils';
	onLoad((option : any) => {
		getTag(option.name)
	})
	const content = ref()
	const getTag = ((name : string) => {
		$http.get('Config/getTag', { data: { name: name } }).then(res => {
			content.value = res.data.content
		})
	})
</script>

<style>
	.content ._img {
		max-width: 100%;
		white-space:wrap;
	}
</style>